<template>
	<div class="header-hot">
		<!-- 顶部标题 -->
		<div class="hot-top">
			<span class="iconfont fire">&#xe6e7</span>
			<label class="hot-til">本周热门榜单</label>
			<label class="hot-right">
				全部榜单
				<span class="iconfont">&#xe637</span>
			</label>
		</div>
		<!-- 列表 -->
		<ul>
			<li class="hot-list" v-for="(item,index) in HotList" :key="index">
				<img :src="item.hotURL" />
				<p class="item-til">{{item.hottil}}</p>
				<p>
					<span>￥{{item.price}}</span>起
				</p>
			</li>
		</ul>
	</div>
</template>

<script>
	export default {
		props:['HotList'],
		data() {
			return {
				
			}
		},
	}
</script>

<style scoped>
	.header-hot{
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		margin-top: 0.4rem;
		padding-bottom: 1rem;
		overflow: hidden;
	}
	.hot-top{
		line-height: 1rem;
		padding-left: 0.2rem;
	}
	.fire{
		color: orangered !important;
		font-size: 0.48rem;/*24px*/
	}
	.hot-til{
		color: #212121;
		font-size: 0.4rem;
		font-weight: bold;
	}
	.hot-right{
		float: right;
		color: #616161;
		font-size: 0.32rem;/*16px*/
		/* display: inline-block; */
		margin-right: 0.2rem;
	}
	.header-hot ul{
		width: 100%;
		white-space: nowrap;
		overflow-y: hidden;
		overflow-x: scroll;
		padding-bottom: 0.5rem;
	}
	.hot-list{
		width: 2rem;
		height: 2rem;
		/* background-color: #00BCD4; */
		padding: 0.2rem;
		display: inline-block;
	}
	.hot-list img{
		width: 100%;
		height: 100%;
	}
	.item-til{
		margin-top: 0.2rem;
		margin-bottom: 0.2rem;
		overflow: hidden;
		text-overflow: ellipsis;/*文本符号：省略号*/
		white-space: nowrap;
	}
</style>
